<?php

class Nutri_Model_Menu extends Nutri_Model_Abstract
{
	protected $_title;
	protected $_description;
	protected $_enddate;
	protected $_price;
	protected $_color;
 
 	public function setTitle($value)
    {
        $this->_title = $value;
        return $this;
    }
 
    public function getTitle()
    {
        return $this->_title;
    }
 	
 	public function setDescription($value)
    {
        $this->_description = $value;
        return $this;
    }
 
    public function getDescription()
    {
        return $this->_description;
    }
	
    public function setEnddate($value)
    {
        $this->_enddate = $value;
        return $this;
    }
 
    public function getEnddate()
    {
        return $this->_enddate;
    }
    
	public function setPrice($value)
    {
        $this->_price = $value;
        return $this;
    }
 
    public function getPrice()
    {
        return $this->_price;
    }
	
	public function setColor($value)
    {
        $this->_color = $value;
        return $this;
    }
 
    public function getColor()
    {
        return $this->_color;
    }
    
	public function toArray()
    {
        return array (
            'id' => $this->getId(),
            'title' => $this->getTitle(),
            'description' => $this->getDescription(),
            'enddate' => $this->getEnddate(),
            'price' => $this->getPrice(),
            'color' => $this->getColor(),
        );
    }
    
 	public function getMapper()
    {
        if (null === $this->_mapper) {
            $this->setMapper('Nutri_Model_Mapper_Menu');
        }
        return $this->_mapper;
    }
}